package com.jlcindia;

public class Oopstest3 {

	public static void main(String[] args) {
		service.process();
		service serv=new service();
		serv.addDetail();
		//serv.addDetail(125);
		//serv.addDetail("ok");
		serv.setage(-234);
		//serv.setage();
		//void var=serv.process();
		//System.out.println(serv.process());//The method println(boolean) in the type PrintStream is not applicable for the arguments (void)
		service.isDigit('*');
		boolean dig=service.isDigit('*');
		System.out.println("Dig:"+dig);
		System.out.println("Upper:"+service.isUppercase('A'));
		System.out.println("Upper:"+service.isUppercase('g'));
		//serv.update("ravi", 99, 45678998l);
		serv.update(99,"ravi",45678998l);
	}

}
class service{
	int sid=22;
	String sname="ravi";
	long phone=7795484339l;
	int age=18;
	
	void setage(int val){
		System.out.println("\n  setage() called**"+val);
		if(val>55)
			return;
		age=val;
		System.out.println("age stored in object");
		}
	void addDetail(){
		System.out.println("**INFO ADDED");
		System.out.println("sid:"+sid);
		System.out.println("Name:"+sname);
		System.out.println("phone:"+phone);
		}
	static public final void process(){
		System.out.println("\n processing...");
	}
	static boolean isDigit(char ch){
		System.out.println("\n isDigit()is called");
		boolean val=false;
		if(ch>48&&ch<57){
			val=true;
		}else
		{
			val=false;
		}
		return val;
		}
	static boolean isUppercase(char ch){
		System.out.println("\n isUppercase() called");
		if(ch>=65&&ch<=90){
			return true;
		}
		else
		{
			return false;
		}
		}
		int update(int sid,String name,long phone){
			System.out.println("\n**update() called**");
			System.out.println(sid+"\t"+name+"\t"+phone);
			return 0;
		}
		/*int search(int sid,String name,long phone){
			return 12.2;
		}*/
		int delete(int sid,String name,long phone){
			return 'A';
		}
	}

